home *** CD-ROM | disk | FTP | other *** search
- ; Install Virtual Worlds V2.0
- ; This script installs Virtual Worlds. Checks for needed libraries, OS version
- ; CPU, adds an assign to S:UserStartup, and installs vw.config to S:
-
- (transcript "Installing Virtual Worlds...")
-
- (set #intromsg (cat "\nThis installs Virtual Worlds V2.0 on your\n"
- "hard disk and checks your Kickstart and CPU.\n"))
-
- (message #intromsg)
-
- ;Check to see what version of the OS we're running on.
- (if (< (/ (getversion) 65536) 39)
- (
- (if (<> 1 (askbool (help @askbool-help) (prompt (cat "You must be using Kickstart 3.0+ to run Virtual Worlds.\n"
- "\n"
- "Do you wish to continue anyway?\n"))))
-
- (
- (abort "Aborting as the Kickstart is not sufficient.")
- )
- )
- )
- )
-
-
- ; Check to see what CPU we're running on.
- (if (>= 68020 (database "cpu"))
- (
- (if (<> 1 (askbool (help @askbool-help) (prompt (cat
- "\nYou need a 68020 CPU or better to run Virtual Worlds.\n"
- "\nDo you wish to continue anyway?\n"))))
- (
- (abort "Aborting as the CPU is not sufficient.")
- )
- )
- )
- )
-
- ;Get the destination directory from the user
- (set wheredir
- (askdir
- (prompt "Select a directory where you would like to install "
- "Virtual Worlds. (A drawer will be created there)")
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- ;Create the directory for Virtual Worlds
- (set wheredir (tackon wheredir "VirtualWorlds2.0"))
- (makedir wheredir (infos))
-
-
- (working "Installing Virtual Worlds...")
- ;Copy all of the files over to the destination
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (pattern "~(Install|Install.info)")
- (infos)
- (source (pathonly @icon))
- (dest wheredir)
- )
-
- ;Add an assign to user startup
- (startup "VIRTUALWORLDS"
- (prompt "I need to add an assign to your\n\"s:user-startup\" file.")
- (help @startup-help)
- (command ("assign VW: \"%s\"\n" wheredir))
- )
-
- ;Copy vw.config file to S:
- (if (exists "s:vw.config")
- (
- (if (<> (getsize "s:vw.config") 286)
- (
- (copyfiles (prompt "Copying new vw.config") (help @copyfiles-help)
- (source "vw.config") (dest "s:") (files))
- )
-
- (
- (if (askbool (help @askbool-help) (prompt
- (cat "\nMay I copy the new vw.config over\n"
- "your current vw.config file?\n")))
- (
- (copyfiles (prompt "Copying new vw.config") (help @copyfiles-help)
- (source "vw.config") (dest "s:") (files))
- )
-
- )
- )
- )
- )
-
- (
- (copyfiles (prompt "Copying new vw.config") (help @copyfiles-help)
- (source "vw.config") (dest "s:"))
- )
- )
-
- (exit "Please reboot your computer before running\nVirtual Worlds.")
-